Log In  
[back to top]

[ :: Read More :: ]

Cart #53431 | 2018-06-09 | Code ▽ | Embed ▽ | No License

Submitted for the OneHourGameJam-Website. Theme: Unexpected.

Controls are changing over time. Isn't that unexpected? ;)

P#53427 2018-06-09 17:04 ( Edited 2018-06-09 21:33)

[ :: Read More :: ]

Cart #53043 | 2018-05-26 | Code ▽ | Embed ▽ | No License

Upload for the One-Hour-Gamejam-Website.

Theme: 2-Player.

Left and Right for Player One, Z and X for Player 2. Try to avoid the flying circles^^.

P#53041 2018-05-26 17:03 ( Edited 2018-05-26 21:51)

[ :: Read More :: ]



(Note: I already pushed it a few days ago, but I deleted it by accident^^)

Hello,
Just programmed a simple "Menu Manager" and I thought, it can be useful for others. :)

It presents a way to write your own Menu, moving a cursor with Arrow-Keys (Up/Down), select an Entry (X) and call a Function.

The Sourcecode is well documented.

EXAMPLE

menu={}

function menu.update() --Copy from Cartridge
function menu.draw() --Copy from Cartridge

function _update()
 menu.update()
end

function _draw()
 menu.draw()
end

function entry_one()
 cls()
 print("entry one selected!")
end

function entry_two()
 cls()
 print("entry two selected!")
end

function entry_x()
 cls()
 print("entry x selected!")
end

cls()
menu.entries = {
 "text entry one", entry_one,
 "text entry two", entry_two,
 "text entry x", entry_x}
cursor(26,40)
menu.start()

Again, the Sourcecode is well documented :)

HOW TO USE IT

  1. Make sure you place
    menu={}

    on your Sourcecode. Not in a function, not even in _init(), it must be placed on the "highest level".

  2. Copy every function, that starts with "menu.", from that Cartridge to your Sourcecode. Thats
    function menu.start()
    function menu.update()
    function menu.draw()

  3. Make sure to call the "update"- and "draw"-function in _update() and _draw(). Don't worry, these Functions won't do anything, they only react after calling another Function ("menu.start()"):
    function _update()
    menu.update()
    end

    function _draw()
    menu.draw()
    end

  4. Set your Screen-Position using "cursor" (it must be done at least once).
    cursor(0,0)

  5. Fill up the "menu.entries"-Array, representing your Menu.
    That Array contains at least two Values: Value "One" is the shown Text, Value "two" is a function that will be called, if player selects the Text. This goes on for Value "Three" (Text), Value "Four" (function) and so on...
    menu.entries = {
    "start game", start_game,
    "options", show_options,
    "credits", show_credits,
    }

6. Make sure these functions at least exist, otherwise the Menu wouldn't shown properly:
function start_game()
[...more code...]
end
[...same for "show_options" and "show_credits"...]

  1. Finally, call that Menu:
    menu.start()

SOME MORE OPTIONS
You can change some Variables before calling "menu.start()":

menu.cursym = ">"

Change the Symbol used as Cursor.

menu.curclr = 10

The same for the used Cursor-Color.

menu.backclr = 0

Color to remove the Cursor-Symbol after moving it.

menu.cancel = [function]

A function that will be called, if the Player press Button "4". If this is set to "nil", nothing will happened.

menu.pos

Use it after calling "menu.start()". You can set the preselected Entry with this Variable. 0 means the first Entry, 1 the Second Entry and so on...


All this code is free to take, use, change, adapt, or whatever.

As said, I thought it can be useful for others^^.

P#51326 2018-04-05 03:46 ( Edited 2018-04-05 07:54)

[ :: Read More :: ]

Cart #52463 | 2018-05-06 | Code ▽ | Embed ▽ | No License
9

New in this Version

  • Every Level replaced. Should be much more balanced now.
  • Some Bugfixes.

What's missing until V1.0?

  • Background-Graphics.
  • Music!
  • Final Level.
  • More "Eye-Candy" (more Animations)
  • Some sort of Intro and Outro
  • Better Mainmenu (Eye-Candy)

Hello there,

Just presenting my other game here^^. "Spikes and Jumps" is a Platformer. Your Goal: Reach the end of every level and avoid everything that hurts.

It's some kind of a Standard-0-8-15-Jump'n Run. The Player doesn't have any special abilities, he can only walk and jump. You have infinite Lives, and you're walking from the left to the right^^.

Controls
Arrow-Keys to move.
Z to jump. Hold Z to jump higher.

GIFs

--

--

--

--
Have Fun! :)

Older Versions:

Cart #51598 | 2018-04-14 | Code ▽ | Embed ▽ | No License
9

Cart #51353 | 2018-04-05 | Code ▽ | Embed ▽ | No License
9

Cart #51178 | 2018-04-02 | Code ▽ | Embed ▽ | No License
9

Cart #51075 | 2018-03-30 | Code ▽ | Embed ▽ | No License
9

Cart #50931 | 2018-03-28 | Code ▽ | Embed ▽ | No License
9

P#50932 2018-03-28 15:09 ( Edited 2018-05-08 03:27)